using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Security.Cryptography;
using System.Text;



/// <summary>
/// Summary description for HashMD5
/// </summary>
public class HashMD5
{
	public HashMD5()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public static string Encrypt(string strTextToEncrypt)
    {
        UTF32Encoding u = new UTF32Encoding();
        MD5CryptoServiceProvider md = new MD5CryptoServiceProvider();
        return Convert.ToBase64String(md.ComputeHash(u.GetBytes(strTextToEncrypt)));
    }
}
